using UnityEngine;
using System.Collections;

public class DeathCounterIdle : State<DeathCounterControl>
{
    #region Singleton

    private static DeathCounterIdle instance = new DeathCounterIdle();
    public static DeathCounterIdle Instance { get { return instance; } }
    private DeathCounterIdle() { }

    #endregion
    
    #region State

    public override void OnEnter(DeathCounterControl behaviour)
    {
        behaviour.count = 0;
        behaviour.gameObject.renderer.material.SetFloat("_Cutoff", behaviour.cutoffMin);
    }

    public override void OnUpdate(DeathCounterControl behaviour)
    {
       
    }

    public override void OnExit(DeathCounterControl behaviour)
    {

    }

    public override void OnAction(string name, DeathCounterControl behaviour, object value)
    {

    }

    #endregion
}
